package com.aliang.docker.entity;

import com.gitee.sunchenbin.mybatis.actable.annotation.*;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlCharsetConstant;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlEngineConstant;
import lombok.Data;

import java.util.Date;

@Data
/**
 * 全部采用actable自有的注解
 */
@Table(value = "t_classification", comment = "分类表")
@TableCharset(MySqlCharsetConstant.UTF8)
@TableEngine(MySqlEngineConstant.InnoDB)
public class ClassiFication {

    @IsKey
    @IsAutoIncrement
    private Long id;

    /** 商品分类名称 */
    @Column(name = "name")
    private String name;

    /** 分类详情 */
    @Column(name = "detail")
    private String detail;

    /** 分类编号 */
    @Column(name = "number")
    private String number;

    /** 展示权重 */
    @Column(name = "type")
    private String type;

    /** 新建时间  */
    @Column(name = "create_time")
    private Date createTime;

}
